export const PAGE_CODE = 'dcs-parts-partSaleOrder';
import {PAGE_TEN} from '../constants';
import {transportType} from '../Enum';

export const DEFAULT_QUERY_OPTION = {
    dealerId: '',
    brandId: '',
    code: '',
    partOrderTypeId: '',
    status: [],
    createTime: undefined,
    pageIndex: PAGE_TEN.index,
    pageSize: PAGE_TEN.size,
    sortField: 'createTime',
    isDesc: true
};
// 操作权限
export const PERMISSION = {
    export: 'export',
    approve: 'approve',
    add: 'add',
    assistAdd: 'assistAdd',
    update: 'update',
    assistUpdate: 'assistUpdate',
    submit: 'submit',
    assistSubmit: 'assistSubmit',
    abandon: 'abandon',
    assistAbandon: 'assistAbandon',
    create: 'create',
    hisOrder: 'hisOrder'
};

export const transportTypeOne = transportType.pick([
    transportType.空运,
    transportType.快递
]);
export const transportTypeNormal = transportType.pick([
    transportType.海运,
    transportType.铁路
]);

export const DEFAULT_QUERY_OPTION_HIS = {
    dealerId: '',
    code: '',
    orderTypeHis: undefined,
    status: undefined,
    paymentHisType: undefined,
    priceTerms: undefined,
    shipmentType: undefined,
    submitDate: undefined,
    stockCreatDate: undefined,
    pageIndex: PAGE_TEN.index,
    pageSize: PAGE_TEN.size,
    sortField: 'createTime',
    isDesc: true
};
